from rest_framework.mixins import ListModelMixin, RetrieveModelMixin, UpdateModelMixin,DestroyModelMixin,    CreateModelMixin
from utils.common_response import APIResponse
class CommonListModelMixin(ListModelMixin):
    def list(self, request, *args, **kwargs):
        res=super().list(request,*args, **kwargs)
        return APIResponse(results=res.data)